import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import './styles/main.scss'
import "nprogress/nprogress.css"
import './permission'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createApp } from 'vue'
import { router } from './router'
import ElementPlus from 'element-plus'
import store from './store'
import App from './App.vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import directives from './directives'

const app = createApp(App)
// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(directives)
app.use(store)
app.use(router)
app.use(ElementPlus, { locale: zhCn })
app.mount('#app')
